home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / lists / lreplace < prev    next >
Encoding:
Text File  |  1993-10-26  |  1.1 KB  |  24 lines  |  [TEXT/$Tcl]

  1.  
  2.           lreplace list first last ?element element ...?
  3.  
  4.  
  5.      DESCRIPTION
  6.           Lreplace returns a new list formed by replacing one or  more
  7.           elements  of  list  with the element arguments.  First gives
  8.           the index in list of the first element to be  replaced.   If
  9.           first  is less than zero then it refers to the first element
  10.           of list;  the element indicated by first must exist  in  the
  11.           list.   Last  gives the index in list of the last element to
  12.           be replaced;  it must be greater than  or  equal  to  first.
  13.           Last may be end (or any abbreviation of it) to indicate that
  14.           all elements between first and the end of the list should be
  15.           replaced.   The  element  arguments specify zero or more new
  16.           arguments to be added to the list in  place  of  those  that
  17.           were  deleted.  Each element argument will become a separate
  18.           element of the list.  If no element arguments are specified,
  19.           then the elements between first and last are simply deleted.
  20.  
  21.  
  22.      KEYWORDS
  23.           element, list, replace
  24.